package com.deercrowing.takeaway.entity;

import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * 员工信息(Employees)表实体类
 *
 * @author guoyongxiang
 * @since 2024-07-05 17:09:28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_employees")
public class EmployeesEntity extends Model<EmployeesEntity> {
    //主键    
    @TableId
    private Integer id;
    //姓名    
    @TableField("name")
    private String name;
    //用户名    
    @TableField("username")
    private String username;
    //密码    
    @TableField("password")
    private String password;
    //手机号    
    @TableField("phone")
    private String phone;
    //性别，0女、1男    
    @TableField("sex")
    private Short sex;
    //身份证号    
    @TableField("id_number")
    private String idNumber;
    //状态 0:禁用，1:启用    
    @TableField("status")
    private Short status;
    //创建时间    
    @TableField("create_Time")
    private LocalDateTime createTime;
    //更新时间    
    @TableField("update_Time")
    private LocalDateTime updateTime;
    //创建人    
    @TableField("create_Employee")
    private Integer createEmployee;
    //修改人    
    @TableField("update_Employee")
    private Integer updateEmployee;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
    
}

